import request from '@/utils/request'

// 查询出库明细列表
export function listExWarehouseDtl(query) {
  return request({
    url: '/wms/exWarehouseDtl/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/exWarehouseDtl/initBean',
        method: 'post'
    })
}

// 查询出库明细详细
export function getExWarehouseDtl(id) {
  return request({
    url: '/wms/exWarehouseDtl/' + id,
    method: 'get'
  })
}

// 新增出库明细
export function addExWarehouseDtl(data) {
  return request({
    url: '/wms/exWarehouseDtl',
    method: 'post',
    data: data
  })
}

// 修改出库明细
export function updateExWarehouseDtl(data) {
  return request({
    url: '/wms/exWarehouseDtl',
    method: 'put',
    data: data
  })
}

// 删除出库明细
export function delExWarehouseDtl(id) {
  return request({
    url: '/wms/exWarehouseDtl/' + id,
    method: 'delete'
  })
}
